GET MATRIX4 ELEMENT
This command returns a float value of an element within the specified matrix, element index zero being the first element in the structure of 16 floats.
Return Float=GET MATRIX4 ELEMENT(Matrix4Result, Element Index)
Matrix4Result
Integer
The matrix number
Element Index
Integer
This value is an integer number such as 1.
This command returns the value of the element
m4=1 : r=make matrix4(m4)
set identity matrix4 m4
element=0
for y=0 to 3
for x=0 to 3
print str$(GET MATRIX4 ELEMENT(m4,element));" ";
inc element
next x
print
next y
wait key
end
3DMATHS Commands Menu
Index